package zust.study.设计模式.结构型模式.桥接模式;

import zust.study.设计模式.结构型模式.桥接模式.api.DrawApi;

/**
 * @author senselyan
 * @date 2018/6/4 15:55
 */
public class Circle extends Shape{

    private int x, y, radius;

    public Circle(int x, int y, int radius, DrawApi drawAPI) {
        super(drawAPI);
        this.x = x;
        this.y = y;
        this.radius = radius;
    }

    public void draw() {
        drawAPI.drawCircle(radius,x,y);
    }
}
